package com.csdj.s3project.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.csdj.s3project.entity.Winner;
import com.csdj.s3project.mapper.WinnerMapper;
import com.csdj.s3project.service.IWinnerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zq
 * @since 2022-01-18
 */
@Service
public class WinnerService extends ServiceImpl<WinnerMapper, Winner> implements IWinnerService {
    private Logger log = LoggerFactory.getLogger("winnerservice");
    @Resource
    private WinnerMapper winnerMapper;

    @Override
    public List<Winner> selectWinners() {
        List<Winner> winnerList = winnerMapper.selectWinners();
        if(winnerList != null){
            return winnerList;
        }
        return null;
    }

}
